<<<<<<< HEAD
package com.wwx.web;

import java.io.File;

import com.opensymphony.xwork2.ActionSupport;
import com.wwx.entity.CartoonDO;
import com.wwx.service.CartoonService;
import com.wwx.service.impl.CartoonServiceImpl;
/**
 * 管理员Action(添加漫画....)
 * @author THTF
 *
 */
public class AdminAction extends ActionSupport{
	private File carurl;
	private String carurlContentType;
	private String carurlFileName;
	private CartoonDO cart;
	public File getCarurl() {
		return carurl;
	}
	public void setCarurl(File carurl) {
		this.carurl = carurl;
	}
	public String getCarurlContentType() {
		return carurlContentType;
	}
	public void setCarurlContentType(String carurlContentType) {
		this.carurlContentType = carurlContentType;
	}
	public String getCarurlFileName() {
		return carurlFileName;
	}
	public void setCarurlFileName(String carurlFileName) {
		this.carurlFileName = carurlFileName;
	}
	public CartoonDO getCart() {
		return cart;
	}
	public void setCart(CartoonDO cart) {
		this.cart = cart;
	}
	
	/**
	 * 添加漫画
	 * @return
	 */
	public String addCart(){
//		System.out.println(carurl);
//		System.out.println(carurlContentType);
//		System.out.println(carurlFileName);
		cart.setCarurl("http://sjbz.fd.zol-img.com.cn/"
		+ "t_s320x510/g5/M00/0F/0D/ChMkJ1fJRtCIFO0XAAd"
		+ "fXXiKTrMAAU8iwH02I8AB191994.jpg");
		System.out.println(cart);
		CartoonService c=new CartoonServiceImpl();
		boolean isBos=c.innertCartoon(cart);
		System.out.println(isBos);
		if(isBos){
			return "";
		}
		return "";
	}
}
=======
package com.wwx.web;

import java.io.File;

import com.opensymphony.xwork2.ActionSupport;
import com.wwx.entity.CartoonDO;
import com.wwx.service.CartoonService;
import com.wwx.service.impl.CartoonServiceImpl;
/**
 * 管理员Action(添加漫画....)
 * @author THTF
 *
 */
public class AdminAction extends ActionSupport{
	private File carurl;
	private String carurlContentType;
	private String carurlFileName;
	private CartoonDO cart;
	public File getCarurl() {
		return carurl;
	}
	public void setCarurl(File carurl) {
		this.carurl = carurl;
	}
	public String getCarurlContentType() {
		return carurlContentType;
	}
	public void setCarurlContentType(String carurlContentType) {
		this.carurlContentType = carurlContentType;
	}
	public String getCarurlFileName() {
		return carurlFileName;
	}
	public void setCarurlFileName(String carurlFileName) {
		this.carurlFileName = carurlFileName;
	}
	public CartoonDO getCart() {
		return cart;
	}
	public void setCart(CartoonDO cart) {
		this.cart = cart;
	}
	
	/**
	 * 添加漫画
	 * @return
	 */
	public String addCart(){
//		System.out.println(carurl);
//		System.out.println(carurlContentType);
//		System.out.println(carurlFileName);
		cart.setCarurl("http://sjbz.fd.zol-img.com.cn/"
		+ "t_s320x510/g5/M00/0F/0D/ChMkJ1fJRtCIFO0XAAd"
		+ "fXXiKTrMAAU8iwH02I8AB191994.jpg");
		System.out.println(cart);
		CartoonService c=new CartoonServiceImpl();
		boolean isBos=c.innertCartoon(cart);
		System.out.println(isBos);
		if(isBos){
			return "";
		}
		return "";
	}
}
>>>>>>> dev
